
content="""
>>> b="你好".encode("utf-8")
>>> b
b'\xe4\xbd\xa0\xe5\xa5\xbd'
>>> b.decode("utf-8")
'你好'

>>> a="a"
>>> b="b"
>>> a+=b
>>> a
'ab'

>>> a="hello,world"
>>> a[1]
'e'
>>> a.find("e")
1
>>> a.find("?")
-1
>>> a.index("h")
0
>>> a.index("?")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: substring not found

>>> f.startswith("2020-12-1")
True

>>> f="xxx.jpg"
>>> f.endswith(".jpg")
True

>>> a="hello,world"
>>> a.replace("hello","hi")
'hi,world'

 a="hello,world"
>>> a.replace("hello","hi")
'hi,world'
>>> a.split(",")
['hello', 'world']

>>> b="hello,world"
>>> b=b.split(",")
>>> b
['hello', 'world']
>>> ",".join(b)
'hello,world'

>>> a="ping"
>>> b="pong"
>>> "play pingpong:{}{}".format(a,b)
'play pingpong:pingpong'

>>> "play pingpong:{0},{1},{0},{1}".format(a,b)
'play pingpong:ping,pong,ping,pong'

>>> "play pingpong:{a},{b},{a},{b}".format(a='ping',b='pong')
'play pingpong:ping,pong,ping,pong'

>>> "{:.2f}".format(3.14159)
'3.14'

>>> "playing %s %s"%("ping","pong")
'playing ping pong'

"""


output=open("output.txt","w",encoding="utf-8")
output.write(content)
output.close()


input=open("output.txt","r",encoding="utf-8")

content_2=input.read()
print(content_2)